package org.example.contract.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同合作伙伴对象 b_contract_partner
 *
 * @author 小孟微信：xiaomengcode
 * @date 2024-05-25
 */
public class ContractPartner extends Contract
{
    private static final long serialVersionUID = 1L;

    /** 合同ID */
    @Excel(name = "合同ID")
    private Long contractPartnerId;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private Long contractId;

    /** 合作伙伴id */
    @Excel(name = "合作伙伴id")
    private Long deptId;

    /** 0甲方1乙方 */
    @Excel(name = "0甲方1乙方")
    private String type;

    /** 租户 */
    @Excel(name = "租户")
    private String zuHu;

    public void setContractPartnerId(Long contractPartnerId)
    {
        this.contractPartnerId = contractPartnerId;
    }

    public Long getContractPartnerId()
    {
        return contractPartnerId;
    }
    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId()
    {
        return contractId;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getZuHu() {
        return zuHu;
    }

    public void setZuHu(String zuHu) {
        this.zuHu = zuHu;
    }

    public ContractPartner() {
    }

    public ContractPartner(Long contractId, Long deptId, String type,String createBy) {
        this.contractId = contractId;
        this.deptId = deptId;
        this.type = type;
        this.setCreateBy(createBy);
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contractPartnerId", getContractPartnerId())
            .append("contractId", getContractId())
            .append("type", getType())
            .append("createBy", getCreateBy())
            .toString();
    }
}
